package uicgas.pump.commands;

import uicgas.communication.Communication;
import uicgas.globaldata.States;
import uicgas.pump.PumpLogic;

/**
 * Deactive pump command
 * 
 * @author Hong Wang
 *
 */
public class DeactivatePump extends AbstractRemoteCommand
{
	public DeactivatePump(PumpLogic pumpLogic, Communication communication)
	{
		super(pumpLogic, communication);
	}

	@Override
	public void executeRemoteCommand()
	{
		pumpLogic.deactivatePump();
		pumpLogic.changeState(States.DEACTIVATED);
	}
}
